-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Stabilize new_zeroed_alloc
#144091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Stabilize new_zeroed_alloc
#144091
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
This comment has been minimized.
This comment has been minimized.
36a935b
to
a84ecd9
Compare
@jieyouxu Are the bootstrap gates for |
This comment has been minimized.
This comment has been minimized.
a84ecd9
to
f9df154
Compare
f9df154
to
081ce42
Compare
@@ -1,9 +1,9 @@ | |||
// tidy-alphabetical-start | |||
#![cfg_attr(all(feature = "nightly", bootstrap), feature(new_zeroed_alloc))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right to me. I'd expect just cfg(bootstrap) here -- presumably, once this is released/used via nightly feature gate this PR would have already landed and so the feature isn't needed.
@@ -358,7 +356,6 @@ impl<T> Box<T> { | |||
/// # Ok::<(), std::alloc::AllocError>(()) | |||
/// ``` | |||
#[unstable(feature = "allocator_api", issue = "32838")] | |||
// #[unstable(feature = "new_uninit", issue = "63291")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, are these just stale comments? I'm a bit confused why we're deleting these in this PR...
The corresponding
new_uninit
andnew_uninit_slice
functions were stabilized in #129401, but the zeroed counterparts were left for later out of a desire to stabilize only the minimal set. These functions are straightforward mirrors of the uninit functions and well-established. Since no blockers or design questions have surfaced in the past year, I think it's time to stabilize them.Tracking issue: #129396